<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderAddCurlDate extends Migrator
{
    public function up()
    {

        $this->table('coupon_order')
            ->addColumn('curl_date', 'datetime', [ 'null' => true, 'comment' => '订单请求第三方更新的时间'])
            ->update();
    }

    public function down()
    {
        $this->table('coupon_order')->removeColumn('curl_date');
    }
}

